package homeWork;

public class maopao5 {
    public static void main(String[] args) {
        int []arr = {465,451,8,42,16,54184,521654,421541,845216,4842,1854,841,6548,4541654,8454165,486541,854,89654,6548,8465,448,9654,854,84,89744,654,8484,51,8468,46,54,84,86,5498,68,6,546,8,9841,5,65,46,5864,984,656,4,8,654,64,98,84,654,968,9684,65,64,9684,987,98,65,68,987,68,6465,4968,865,4,68789,456,6,5496,89,84,6546,8,232,16,4,1346,54,68413,24,654,651,65,65,4131,684,654,65,4687,987,9,7,465,432,13,36,54165,46,132,65,6,416,468,63,4163,5136,56,5,68,6854,651,654,21,216,5,4,98798,5,165,8,746,5285,46984,897,98,351,354,4,659,8469,84,6549,68};
        for (int i = 0; i < arr.length-1; i++) {
            for (int j = 0; j < arr.length-1-i; j++) {
                if (arr[j]>arr[j+1]) {
                    int temp = arr[j];
                    arr[j]=arr[j+1];
                    arr[j+1]=temp;
                }
            }
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]+" ");
        }
    }
}
